//
//  ViewController.m
//  12-Homework
//
//  Created by dllo on 16/7/29.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *image;

@end

@implementation ViewController
    // http://www.jianshu.com/writer#/notebooks/4449859/notes/5021146
- (void)viewDidLoad {
    [super viewDidLoad];
    UIGraphicsBeginImageContextWithOptions(_image.bounds.size, NO, 1.0);
    [[UIBezierPath bezierPathWithRoundedRect:_image.bounds cornerRadius:_image.frame.size.width] addClip];
    [_image drawRect:_image.bounds];
    _image.image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    // Do any additional setup after loading the view, typically from a nib.
    // 1.使用 storyboard 和 xib 将QQ音乐播放页面实现(添加约束)
    //    2.使用 storyboard 完成拉钩页面, 并关联逻辑(实现假的登录、注册、忘记密码逻辑)。(主要目的熟悉约束, 注意适配横屏)
    //    3.找个额外的登录界面实现(提交作业时, 要告知模仿的是哪个程序的哪个页面) storyboard/xib自选
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
